package com.brick.service;

import com.brick.entity.Account;
import com.brick.mapper.AccountMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public class AccountService {
    @Autowired
    AccountMapper accountMapper;

    public Account selectAll(String userId){
        return accountMapper.selectAll(userId);
    }

    public int insert(Account account){
        return accountMapper.insert(account);
    }

    public int update(Account account){
        return accountMapper.update(account);
    }
}
